package com.yc.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author zwei
 * @create 2024-09-03 14:07
 */
@Configuration
public class SpringMvcWebConfig implements WebMvcConfigurer {
//    @Autowired
//    private RedisTemplate<String, Object> redisTemplate;
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new ResFoodInterceptor(redisTemplate))
//                .addPathPatterns("/resfood/findById/*");    //指定拦截路径
//    }
}
